import random

# 1. 提示并获取用户的输入
player = int(input("请输入 0剪刀 1石头 2布:"))

# 2. 让电脑出一个
computer = random.randint(0, 2)

# 2. 判断用户的输入,然后显示对应的结果
# if 玩家获胜的条件:
if (player == 0 and computer == 2) or (player == 1 and computer == 0) or (player == 2 and computer == 0):
    print("赢了,,,,可以去买奶粉了.....")
elif player == computer:  # 玩家平局的条件:
    print("平局了,,,洗洗手决战到天亮....")
else:
    print("输了,,,回家拿钱 再来....")
